package com.example.demo.service.impl;

import com.example.demo.entity.Course;
import com.example.demo.mapper.CourseMapper;
import com.example.demo.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CourseServiceImpl implements CourseService {


    @Autowired
    CourseMapper courseMapper;

    @Override
    public int save(Course course) {
        return courseMapper.save(course);
    }
    @Override
    public int delete(int courseId) {
        return courseMapper.delete(courseId);
    }

    @Override
    public int update(Course course) {
        return courseMapper.update(course);
    }

    @Override
    public List<Course> select() {
        return courseMapper.select();
    }
}
